Block changes in object using Object.freeze()